//
//  RCSocketSendSerializationer.h
//  RCNetRequestProject
//
//  Created by kabu on 2017/8/15.
//  Copyright © 2017年 RC. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol RCSocketSendSerialization<NSObject>

/**
 将需要发送的数据进行转换为Data发送

 @param sender 元数据
 @return Data
 */
- (NSData*)transformMessageToData:(id)sender;
@end
@interface RCSocketSendSerializationer : NSObject<RCSocketSendSerialization>
+ (instancetype)serializationer;
@end
@interface RCJsonSocketSendSerializationer : RCSocketSendSerializationer

@end
